package com.acmen.easyapi.service;

import com.acmen.easyapi.executor.AuthorizationExe;
import com.acmen.easyapi.model.Response;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 授权服务
 * @author acmen
 *
 */
@Service
public class AuthorizationService {

    @Resource
    private AuthorizationExe authorizationExe;
    public Response authorize(HttpServletRequest request, HttpServletResponse response) {
        return authorizationExe.authorize(request,response);
    }
}
